<?php
use yii\db\Migration;
use yii\db\Schema;

class m170724_011642_ADD_COLUMN_FINANCE_ORDER_PRODUCT_ID extends Migration
{
    public function up()
    {

         $this->addColumn('{{finance_order}}', 'product_id', Schema::TYPE_INTEGER. "(11)  DEFAULT  NULL COMMENT '团期编号' ");
    }

    public function down()
    {
        echo "m170724_011642_ADD_COLUMN_FINANCE_ORDER_PRODUCT_ID cannot be reverted.\n";

        return false;
    }

}
